﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace ThemesGenerator
{
    /// <summary>
    /// Interaction logic for SelectSize.xaml
    /// </summary>
    public partial class SelectSize : Window
    {
        public ThemeSize TSize = new ThemeSize();

        public SelectSize()
        {
            InitializeComponent();

            this.WidthTextBox.DataContext = TSize;
            this.LengthTextBox.DataContext = TSize;
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = true;
        }
    }

    public class ThemeSize
    { 
        private int? _length;
        private int? _width;

        public int? Width
        {
            get
            {
                return _width;
            }
            set
            {
                _width = value;
            }
        }

        public int? Length
        {
            get
            {
                return _length;
            }
            set
            {
                _length = value;
            }
        }
    }
}
